﻿using Demo.Admin.Application.Contracts.Users.Dto;
using Volo.Abp.Identity;

namespace Demo.Admin.Application.Users;

public static class UsersAutoMapperProfile
{
    /// <summary>
    /// 创建用户映射关系
    /// </summary>
    /// <param name="profile"></param>
    public static void CreateUserMap(this DemoAdminApplicationAutoMapperProfile profile)
    {
        profile.CreateMap<AdminUserCreateDto, IdentityUserCreateDto>();
        profile.CreateMap<IdentityUserDto, AdminUserDto>();
    }
}